USHIFT-7381: fix(microshift-ci): fix PCP dashboard rendering inside Spyglass#240
Conversation
Replace height: 100vh and overflow: hidden with percentage-based height and min-height. Spyglass embeds custom-link HTML in a container where 100vh resolves incorrectly, causing the dashboard to render as a blank black page. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: suleymanakbas91 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
WalkthroughThe PCP dashboard layout now uses full-height sizing with a 600px minimum and a fixed 400px empty-state height. Hypervisor build ID extraction uses an artifacts-relative path. The microshift-ci plugin version is updated to 1.5.1. ChangesMicroshift CI updates
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 10 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (10 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…mode The numeric-only regex in process_hypervisor_dir() failed to match the "local" build_id used in --local mode, causing hypervisor PCP data to be silently skipped. Replace with simple path component extraction that handles both numeric and "local" build IDs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@plugins/microshift-ci/scripts/pcp-graphs/generate-dashboard.sh`:
- Around line 264-265: Add tests for the build_id extraction in the
generate-dashboard flow, covering positive numeric IDs, the literal “local”
identifier, and malformed artifact-relative paths. Verify each case produces the
expected grouping key, including rejection or handling of invalid paths
according to the existing script behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 726231b7-0755-4e68-804a-52213b7530cc
📒 Files selected for processing (1)
plugins/microshift-ci/scripts/pcp-graphs/generate-dashboard.sh
Cover build_id extraction for both URL mode (numeric) and local mode
("local"), tarball path parsing (scenario, VM host), and malformed
input. Addresses CONTRIBUTING.md requirement for validation/parsing
test coverage.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This reverts commit 5118855.
|
/lgtm |
Summary
height: 100vh; overflow: hiddenwithhtml,body { height: 100% }andmin-height: 600pxon bodyheight: 60vhon empty-state with fixed400px100vhresolves to 0, causing the dashboard to render as a blank pageTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit